const program = require('commander');
const api=require('./index.js')

program
  .option('-A, --add', 'you can add task');
program
  .command('add')
  .description('=>you can add task')
  .action((...args) => {
    const word=args.slice(0,-1).join(' ')
    api.add(word)
  });
program
  .command('clear')
  .description('=>you can clear all task')
  .action((...args) => {
    console.log('__')
  });

program.parse(process.argv);


